<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- 避免IE使用兼容模式 -->
<meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1">
<meta name="renderer" content="webkit">
<!-- TopJUI框架样式 -->
<link type="text/css" href="../../topjui/themes/default/topjui.core.min.css" rel="stylesheet">
<link type="text/css" href="../../topjui/themes/default/topjui.blue.css" rel="stylesheet" id="dynamicTheme" />
<!-- FontAwesome字体图标 -->
<link type="text/css" href="../../statics/plugins/font-awesome/css/font-awesome.min.css" rel="stylesheet" />
<!-- layui框架样式 -->
<link type="text/css" href="../../statics/plugins/layui/css/layui.css" rel="stylesheet" />
<!-- jQuery相关引用 -->
<script type="text/javascript" src="../../statics/plugins/jquery/jquery.min.js"></script>
<script type="text/javascript" src="../../statics/plugins/jquery/jquery.cookie.js"></script>
<!-- TopJUI框架配置 -->
<script type="text/javascript" src="../../statics/public/js/topjui.config.js"></script>
<!-- TopJUI框架核心-->
<script type="text/javascript" src="../../topjui/js/topjui.core.min1.js"></script>
<!-- TopJUI中文支持 -->
<script type="text/javascript" src="../../topjui/js/locale/topjui.lang.zh_CN.js"></script>
<!-- layui框架js -->
<script type="text/javascript" src="../../statics/plugins/layui/layui.js" charset="utf-8"></script>

<script type="text/javascript" src="../../statics/plugins/ueditor/ueditor.config.js"></script>
<script type="text/javascript" src="../../statics/plugins/ueditor/ueditor.all.min.js"></script>
<script type="text/javascript" charset="utf-8" src="../../statics/plugins/ueditor/lang/zh-cn/zh-cn.js"></script>
<!-- 上传组件 -->
<link type="text/css" rel="stylesheet" href="../../statics/plugins/webuploader/css/webuploader.css">
<script type="text/javascript" src="../../statics/plugins/webuploader/js/webuploader.min.js"></script>
</head>
<body>
<div class="topjui-container">
    <fieldset>
        <legend>测试openid</legend>
    </fieldset>
</div>
<h1 id="t1"></h1>
<h2 id="t2"></h2>
<h3 id="t3"></h3>
<h4 id="t4"></h4>
<script>
$(function(){ 
    $.ajax({
        url: "/user/testopenid",
        type: 'POST',
        dataType: "json",
        success: function (data,status) {
            
        	alert("data="+data+"   status="+status);
            $('#t1').text(data.t1);
            $('#t2').text(data.t2);
            $('#t3').text(data.t3);
            $('#t4').text(data.t4);
         },
        error: function (data,status) {
            //上传失败时显示上传失败信息
        }
    });

});
</script>
</body>
</html>